﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BT_DoHoa_Nhom13.ShapeLib
{
    public class MyString:MyShape
    {
        String content;
        public MyString(String newContent)
        {
            content = newContent;
        }

        protected override void ActualDraw(MyGraphic graphic)
        {
            int top, left, width, height;
            this.SetConfig(out top, out left, out  width, out  height);
            graphic.DrawString(left,top, width, height, content);
        }

        public override MyShape Clone()
        {
            MyShape copy = new MyString(content);
            copy.Copy(this);
            return copy;
        }
    }
}
